<?php

use yii\db\Migration;

class m190218_025043_sys_auth_item extends Migration
{
    public function up()
    {
        /* 取消外键约束 */
        $this->execute('SET foreign_key_checks = 0');
        
        /* 创建表 */
        $this->createTable('{{%sys_auth_item}}', [
            'name' => 'varchar(64) NOT NULL',
            'type' => 'int(11) NOT NULL',
            'key' => 'int(10) NOT NULL DEFAULT \'0\' COMMENT \'唯一key\'',
            'description' => 'text NULL',
            'rule_name' => 'varchar(64) NULL DEFAULT \'\' COMMENT \'规则名称\'',
            'data' => 'text NULL',
            'parent_key' => 'int(10) NULL DEFAULT \'0\' COMMENT \'父级key\'',
            'level' => 'int(5) NULL DEFAULT \'1\' COMMENT \'级别\'',
            'sort' => 'int(10) NULL DEFAULT \'0\' COMMENT \'排序\'',
            'position' => 'varchar(2000) NOT NULL DEFAULT \'\' COMMENT \'树\'',
            'created_at' => 'int(11) NULL DEFAULT \'0\'',
            'updated_at' => 'int(11) NULL DEFAULT \'0\'',
            'PRIMARY KEY (`name`)'
        ], "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='系统_角色路由表'");
        
        /* 索引设置 */
        $this->createIndex('rule_name','{{%sys_auth_item}}','rule_name',0);
        $this->createIndex('type','{{%sys_auth_item}}','type',0);
        
        /* 外键约束设置 */
        $this->addForeignKey('fk_sys_auth_rule_6825_00','{{%sys_auth_item}}', 'rule_name', '{{%sys_auth_rule}}', 'name', 'CASCADE', 'CASCADE' );
        
        /* 表数据 */
        $this->insert('{{%sys_auth_item}}',['name'=>'/main/clear-cache','type'=>'2','key'=>'4','description'=>'清理缓存','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'1','level'=>'2','sort'=>'2','position'=>'tr_0 tr_1','created_at'=>'1550452699','updated_at'=>'1550452699']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/member/address/ajax-edit','type'=>'2','key'=>'19','description'=>'新增/编辑','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'17','level'=>'5','sort'=>'1','position'=>'tr_0 tr_9 tr_10 tr_11 tr_17','created_at'=>'1550452700','updated_at'=>'1550452700']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/member/address/ajax-update','type'=>'2','key'=>'21','description'=>'状态修改','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'17','level'=>'5','sort'=>'3','position'=>'tr_0 tr_9 tr_10 tr_11 tr_17','created_at'=>'1550452700','updated_at'=>'1550452700']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/member/address/destroy','type'=>'2','key'=>'20','description'=>'删除','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'17','level'=>'5','sort'=>'2','position'=>'tr_0 tr_9 tr_10 tr_11 tr_17','created_at'=>'1550452700','updated_at'=>'1550452700']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/member/address/index','type'=>'2','key'=>'18','description'=>'首页','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'17','level'=>'5','sort'=>'0','position'=>'tr_0 tr_9 tr_10 tr_11 tr_17','created_at'=>'1550452700','updated_at'=>'1550452700']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/member/auth/ajax-update','type'=>'2','key'=>'26','description'=>'状态修改','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'22','level'=>'4','sort'=>'3','position'=>'tr_0 tr_9 tr_10 tr_22','created_at'=>'1550452700','updated_at'=>'1550452700']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/member/auth/destroy','type'=>'2','key'=>'25','description'=>'删除','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'22','level'=>'4','sort'=>'2','position'=>'tr_0 tr_9 tr_10 tr_22','created_at'=>'1550452700','updated_at'=>'1550452700']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/member/auth/edit','type'=>'2','key'=>'24','description'=>'新增/编辑','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'22','level'=>'4','sort'=>'1','position'=>'tr_0 tr_9 tr_10 tr_22','created_at'=>'1550452700','updated_at'=>'1550452700']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/member/auth/index','type'=>'2','key'=>'23','description'=>'首页','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'22','level'=>'4','sort'=>'0','position'=>'tr_0 tr_9 tr_10 tr_22','created_at'=>'1550452700','updated_at'=>'1550452700']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/member/member/ajax-edit','type'=>'2','key'=>'14','description'=>'新增/账号密码','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'11','level'=>'4','sort'=>'2','position'=>'tr_0 tr_9 tr_10 tr_11','created_at'=>'1550452699','updated_at'=>'1550452699']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/member/member/ajax-update','type'=>'2','key'=>'16','description'=>'状态修改','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'11','level'=>'4','sort'=>'4','position'=>'tr_0 tr_9 tr_10 tr_11','created_at'=>'1550452699','updated_at'=>'1550452699']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/member/member/destroy','type'=>'2','key'=>'15','description'=>'删除','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'11','level'=>'4','sort'=>'3','position'=>'tr_0 tr_9 tr_10 tr_11','created_at'=>'1550452699','updated_at'=>'1550452699']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/member/member/edit','type'=>'2','key'=>'13','description'=>'编辑','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'11','level'=>'4','sort'=>'1','position'=>'tr_0 tr_9 tr_10 tr_11','created_at'=>'1550452699','updated_at'=>'1550452699']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/member/member/index','type'=>'2','key'=>'12','description'=>'首页','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'11','level'=>'4','sort'=>'0','position'=>'tr_0 tr_9 tr_10 tr_11','created_at'=>'1550452699','updated_at'=>'1550452699']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/sys/addons-plug/ajax-edit','type'=>'2','key'=>'36','description'=>'编辑','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'31','level'=>'4','sort'=>'4','position'=>'tr_0 tr_27 tr_30 tr_31','created_at'=>'1550452701','updated_at'=>'1550452701']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/sys/addons-plug/ajax-update','type'=>'2','key'=>'35','description'=>'状态修改','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'31','level'=>'4','sort'=>'3','position'=>'tr_0 tr_27 tr_30 tr_31','created_at'=>'1550452701','updated_at'=>'1550452701']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/sys/addons-plug/create','type'=>'2','key'=>'34','description'=>'设计插件','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'31','level'=>'4','sort'=>'2','position'=>'tr_0 tr_27 tr_30 tr_31','created_at'=>'1550452700','updated_at'=>'1550452700']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/sys/addons-plug/install','type'=>'2','key'=>'33','description'=>'安装插件','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'31','level'=>'4','sort'=>'1','position'=>'tr_0 tr_27 tr_30 tr_31','created_at'=>'1550452700','updated_at'=>'1550452700']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/sys/addons-plug/uninstall','type'=>'2','key'=>'32','description'=>'已安装插件','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'31','level'=>'4','sort'=>'0','position'=>'tr_0 tr_27 tr_30 tr_31','created_at'=>'1550452700','updated_at'=>'1550452700']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/sys/addons-plug/upgrade','type'=>'2','key'=>'37','description'=>'更新数据库','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'31','level'=>'4','sort'=>'5','position'=>'tr_0 tr_27 tr_30 tr_31','created_at'=>'1550452701','updated_at'=>'1550452701']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/sys/addons-plug/upgrade-config','type'=>'2','key'=>'38','description'=>'更新配置','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'31','level'=>'4','sort'=>'6','position'=>'tr_0 tr_27 tr_30 tr_31','created_at'=>'1550452701','updated_at'=>'1550452701']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/sys/attachment/ajax-update','type'=>'2','key'=>'93','description'=>'状态修改','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'90','level'=>'3','sort'=>'2','position'=>'tr_0 tr_27 tr_90','created_at'=>'1550452704','updated_at'=>'1550452704']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/sys/attachment/destroy','type'=>'2','key'=>'92','description'=>'删除','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'90','level'=>'3','sort'=>'1','position'=>'tr_0 tr_27 tr_90','created_at'=>'1550452704','updated_at'=>'1550452704']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/sys/attachment/index','type'=>'2','key'=>'91','description'=>'首页','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'90','level'=>'3','sort'=>'0','position'=>'tr_0 tr_27 tr_90','created_at'=>'1550452704','updated_at'=>'1550452704']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/sys/auth-accredit/ajax-edit','type'=>'2','key'=>'68','description'=>'新增/编辑','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'66','level'=>'4','sort'=>'1','position'=>'tr_0 tr_27 tr_59 tr_66','created_at'=>'1550452702','updated_at'=>'1550452702']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/sys/auth-accredit/ajax-update','type'=>'2','key'=>'70','description'=>'状态修改','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'66','level'=>'4','sort'=>'3','position'=>'tr_0 tr_27 tr_59 tr_66','created_at'=>'1550452703','updated_at'=>'1550452703']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/sys/auth-accredit/delete','type'=>'2','key'=>'69','description'=>'删除','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'66','level'=>'4','sort'=>'2','position'=>'tr_0 tr_27 tr_59 tr_66','created_at'=>'1550452702','updated_at'=>'1550452702']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/sys/auth-accredit/index','type'=>'2','key'=>'67','description'=>'首页','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'66','level'=>'4','sort'=>'0','position'=>'tr_0 tr_27 tr_59 tr_66','created_at'=>'1550452702','updated_at'=>'1550452702']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/sys/auth-role/ajax-update','type'=>'2','key'=>'80','description'=>'状态修改','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'76','level'=>'4','sort'=>'3','position'=>'tr_0 tr_27 tr_59 tr_76','created_at'=>'1550452703','updated_at'=>'1550452703']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/sys/auth-role/delete','type'=>'2','key'=>'79','description'=>'删除','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'76','level'=>'4','sort'=>'2','position'=>'tr_0 tr_27 tr_59 tr_76','created_at'=>'1550452703','updated_at'=>'1550452703']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/sys/auth-role/edit','type'=>'2','key'=>'78','description'=>'新增/编辑','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'76','level'=>'4','sort'=>'1','position'=>'tr_0 tr_27 tr_59 tr_76','created_at'=>'1550452703','updated_at'=>'1550452703']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/sys/auth-role/index','type'=>'2','key'=>'77','description'=>'首页','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'76','level'=>'4','sort'=>'0','position'=>'tr_0 tr_27 tr_59 tr_76','created_at'=>'1550452703','updated_at'=>'1550452703']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/sys/auth-rule/ajax-edit','type'=>'2','key'=>'73','description'=>'新增/编辑','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'71','level'=>'4','sort'=>'1','position'=>'tr_0 tr_27 tr_59 tr_71','created_at'=>'1550452703','updated_at'=>'1550452703']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/sys/auth-rule/ajax-update','type'=>'2','key'=>'75','description'=>'状态修改','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'71','level'=>'4','sort'=>'3','position'=>'tr_0 tr_27 tr_59 tr_71','created_at'=>'1550452703','updated_at'=>'1550452703']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/sys/auth-rule/delete','type'=>'2','key'=>'74','description'=>'删除','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'71','level'=>'4','sort'=>'2','position'=>'tr_0 tr_27 tr_59 tr_71','created_at'=>'1550452703','updated_at'=>'1550452703']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/sys/auth-rule/index','type'=>'2','key'=>'72','description'=>'首页','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'71','level'=>'4','sort'=>'0','position'=>'tr_0 tr_27 tr_59 tr_71','created_at'=>'1550452703','updated_at'=>'1550452703']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/sys/config-cate/ajax-edit','type'=>'2','key'=>'46','description'=>'编辑','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'44','level'=>'5','sort'=>'1','position'=>'tr_0 tr_27 tr_30 tr_39 tr_44','created_at'=>'1550452701','updated_at'=>'1550452701']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/sys/config-cate/ajax-update','type'=>'2','key'=>'48','description'=>'状态修改','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'44','level'=>'5','sort'=>'3','position'=>'tr_0 tr_27 tr_30 tr_39 tr_44','created_at'=>'1550452701','updated_at'=>'1550452701']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/sys/config-cate/delete','type'=>'2','key'=>'47','description'=>'删除','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'44','level'=>'5','sort'=>'2','position'=>'tr_0 tr_27 tr_30 tr_39 tr_44','created_at'=>'1550452701','updated_at'=>'1550452701']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/sys/config-cate/index','type'=>'2','key'=>'45','description'=>'首页','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'44','level'=>'5','sort'=>'0','position'=>'tr_0 tr_27 tr_30 tr_39 tr_44','created_at'=>'1550452701','updated_at'=>'1550452701']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/sys/config/ajax-edit','type'=>'2','key'=>'41','description'=>'编辑','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'39','level'=>'4','sort'=>'1','position'=>'tr_0 tr_27 tr_30 tr_39','created_at'=>'1550452701','updated_at'=>'1550452701']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/sys/config/ajax-update','type'=>'2','key'=>'43','description'=>'状态修改','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'39','level'=>'4','sort'=>'3','position'=>'tr_0 tr_27 tr_30 tr_39','created_at'=>'1550452701','updated_at'=>'1550452701']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/sys/config/delete','type'=>'2','key'=>'42','description'=>'删除','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'39','level'=>'4','sort'=>'2','position'=>'tr_0 tr_27 tr_30 tr_39','created_at'=>'1550452701','updated_at'=>'1550452701']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/sys/config/edit-all','type'=>'2','key'=>'28','description'=>'网站设置','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'27','level'=>'2','sort'=>'0','position'=>'tr_0 tr_27','created_at'=>'1550452700','updated_at'=>'1550452700']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/sys/config/index','type'=>'2','key'=>'40','description'=>'首页','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'39','level'=>'4','sort'=>'0','position'=>'tr_0 tr_27 tr_30 tr_39','created_at'=>'1550452701','updated_at'=>'1550452701']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/sys/config/update-info','type'=>'2','key'=>'29','description'=>'数据保存','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'28','level'=>'3','sort'=>'0','position'=>'tr_0 tr_27 tr_28','created_at'=>'1550452700','updated_at'=>'1550452700']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/sys/data-base/backups','type'=>'2','key'=>'105','description'=>'首页','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'104','level'=>'5','sort'=>'0','position'=>'tr_0 tr_27 tr_94 tr_103 tr_104','created_at'=>'1550452704','updated_at'=>'1550452704']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/sys/data-base/data-dictionary','type'=>'2','key'=>'108','description'=>'Markdown数据字典','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'104','level'=>'5','sort'=>'3','position'=>'tr_0 tr_27 tr_94 tr_103 tr_104','created_at'=>'1550452705','updated_at'=>'1550452705']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/sys/data-base/delete','type'=>'2','key'=>'115','description'=>'删除','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'111','level'=>'5','sort'=>'3','position'=>'tr_0 tr_27 tr_94 tr_103 tr_111','created_at'=>'1550452705','updated_at'=>'1550452705']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/sys/data-base/export','type'=>'2','key'=>'109','description'=>'备份检测','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'104','level'=>'5','sort'=>'4','position'=>'tr_0 tr_27 tr_94 tr_103 tr_104','created_at'=>'1550452705','updated_at'=>'1550452705']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/sys/data-base/export-start','type'=>'2','key'=>'110','description'=>'开始备份','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'104','level'=>'5','sort'=>'5','position'=>'tr_0 tr_27 tr_94 tr_103 tr_104','created_at'=>'1550452705','updated_at'=>'1550452705']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/sys/data-base/optimize','type'=>'2','key'=>'107','description'=>'优化表','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'104','level'=>'5','sort'=>'2','position'=>'tr_0 tr_27 tr_94 tr_103 tr_104','created_at'=>'1550452705','updated_at'=>'1550452705']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/sys/data-base/repair','type'=>'2','key'=>'106','description'=>'修复表','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'104','level'=>'5','sort'=>'1','position'=>'tr_0 tr_27 tr_94 tr_103 tr_104','created_at'=>'1550452704','updated_at'=>'1550452704']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/sys/data-base/restore','type'=>'2','key'=>'112','description'=>'首页','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'111','level'=>'5','sort'=>'0','position'=>'tr_0 tr_27 tr_94 tr_103 tr_111','created_at'=>'1550452705','updated_at'=>'1550452705']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/sys/data-base/restore-init','type'=>'2','key'=>'114','description'=>'初始化还原','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'111','level'=>'5','sort'=>'2','position'=>'tr_0 tr_27 tr_94 tr_103 tr_111','created_at'=>'1550452705','updated_at'=>'1550452705']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/sys/data-base/restore-start','type'=>'2','key'=>'113','description'=>'还原','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'111','level'=>'5','sort'=>'1','position'=>'tr_0 tr_27 tr_94 tr_103 tr_111','created_at'=>'1550452705','updated_at'=>'1550452705']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/sys/log/action','type'=>'2','key'=>'97','description'=>'行为日志','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'96','level'=>'4','sort'=>'0','position'=>'tr_0 tr_27 tr_94 tr_96','created_at'=>'1550452704','updated_at'=>'1550452704']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/sys/log/action-view','type'=>'2','key'=>'98','description'=>'行为日志详情','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'96','level'=>'4','sort'=>'1','position'=>'tr_0 tr_27 tr_94 tr_96','created_at'=>'1550452704','updated_at'=>'1550452704']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/sys/log/error','type'=>'2','key'=>'99','description'=>'报错日志','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'96','level'=>'4','sort'=>'2','position'=>'tr_0 tr_27 tr_94 tr_96','created_at'=>'1550452704','updated_at'=>'1550452704']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/sys/log/error-view','type'=>'2','key'=>'100','description'=>'报错日志详情','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'96','level'=>'4','sort'=>'3','position'=>'tr_0 tr_27 tr_94 tr_96','created_at'=>'1550452704','updated_at'=>'1550452704']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/sys/log/pay','type'=>'2','key'=>'101','description'=>'支付日志','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'96','level'=>'4','sort'=>'4','position'=>'tr_0 tr_27 tr_94 tr_96','created_at'=>'1550452704','updated_at'=>'1550452704']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/sys/log/pay-view','type'=>'2','key'=>'102','description'=>'支付日志详情','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'96','level'=>'4','sort'=>'5','position'=>'tr_0 tr_27 tr_94 tr_96','created_at'=>'1550452704','updated_at'=>'1550452704']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/sys/manager-notify/announce','type'=>'2','key'=>'6','description'=>'公告列表','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'5','level'=>'3','sort'=>'0','position'=>'tr_0 tr_1 tr_5','created_at'=>'1550452699','updated_at'=>'1550452699']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/sys/manager-notify/announce-view','type'=>'2','key'=>'7','description'=>'公告详情','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'5','level'=>'3','sort'=>'1','position'=>'tr_0 tr_1 tr_5','created_at'=>'1550452699','updated_at'=>'1550452699']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/sys/manager-notify/message','type'=>'2','key'=>'8','description'=>'私信列表','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'5','level'=>'3','sort'=>'2','position'=>'tr_0 tr_1 tr_5','created_at'=>'1550452699','updated_at'=>'1550452699']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/sys/manager/ajax-edit','type'=>'2','key'=>'62','description'=>'新增/账号密码','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'60','level'=>'4','sort'=>'1','position'=>'tr_0 tr_27 tr_59 tr_60','created_at'=>'1550452702','updated_at'=>'1550452702']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/sys/manager/ajax-update','type'=>'2','key'=>'64','description'=>'状态修改','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'60','level'=>'4','sort'=>'3','position'=>'tr_0 tr_27 tr_59 tr_60','created_at'=>'1550452702','updated_at'=>'1550452702']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/sys/manager/delete','type'=>'2','key'=>'63','description'=>'删除','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'60','level'=>'4','sort'=>'2','position'=>'tr_0 tr_27 tr_59 tr_60','created_at'=>'1550452702','updated_at'=>'1550452702']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/sys/manager/edit','type'=>'2','key'=>'65','description'=>'编辑','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'60','level'=>'4','sort'=>'4','position'=>'tr_0 tr_27 tr_59 tr_60','created_at'=>'1550452702','updated_at'=>'1550452702']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/sys/manager/index','type'=>'2','key'=>'61','description'=>'首页','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'60','level'=>'4','sort'=>'0','position'=>'tr_0 tr_27 tr_59 tr_60','created_at'=>'1550452702','updated_at'=>'1550452702']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/sys/manager/personal','type'=>'2','key'=>'2','description'=>'个人中心','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'1','level'=>'2','sort'=>'0','position'=>'tr_0 tr_1','created_at'=>'1550452699','updated_at'=>'1550452699']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/sys/manager/up-password','type'=>'2','key'=>'3','description'=>'修改密码','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'1','level'=>'2','sort'=>'1','position'=>'tr_0 tr_1','created_at'=>'1550452699','updated_at'=>'1550452699']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/sys/menu-cate/ajax-edit','type'=>'2','key'=>'56','description'=>'新增/编辑','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'54','level'=>'5','sort'=>'1','position'=>'tr_0 tr_27 tr_30 tr_49 tr_54','created_at'=>'1550452702','updated_at'=>'1550452702']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/sys/menu-cate/ajax-update','type'=>'2','key'=>'58','description'=>'状态修改','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'54','level'=>'5','sort'=>'3','position'=>'tr_0 tr_27 tr_30 tr_49 tr_54','created_at'=>'1550452702','updated_at'=>'1550452702']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/sys/menu-cate/delete','type'=>'2','key'=>'57','description'=>'删除','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'54','level'=>'5','sort'=>'2','position'=>'tr_0 tr_27 tr_30 tr_49 tr_54','created_at'=>'1550452702','updated_at'=>'1550452702']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/sys/menu-cate/index','type'=>'2','key'=>'55','description'=>'首页','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'54','level'=>'5','sort'=>'0','position'=>'tr_0 tr_27 tr_30 tr_49 tr_54','created_at'=>'1550452702','updated_at'=>'1550452702']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/sys/menu/ajax-edit','type'=>'2','key'=>'51','description'=>'新增/编辑','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'49','level'=>'4','sort'=>'1','position'=>'tr_0 tr_27 tr_30 tr_49','created_at'=>'1550452701','updated_at'=>'1550452701']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/sys/menu/ajax-update','type'=>'2','key'=>'53','description'=>'状态修改','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'49','level'=>'4','sort'=>'3','position'=>'tr_0 tr_27 tr_30 tr_49','created_at'=>'1550452702','updated_at'=>'1550452702']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/sys/menu/delete','type'=>'2','key'=>'52','description'=>'删除','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'49','level'=>'4','sort'=>'2','position'=>'tr_0 tr_27 tr_30 tr_49','created_at'=>'1550452702','updated_at'=>'1550452702']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/sys/menu/index','type'=>'2','key'=>'50','description'=>'首页','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'49','level'=>'4','sort'=>'0','position'=>'tr_0 tr_27 tr_30 tr_49','created_at'=>'1550452701','updated_at'=>'1550452701']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/sys/notify-announce/destroy','type'=>'2','key'=>'85','description'=>'删除','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'82','level'=>'4','sort'=>'2','position'=>'tr_0 tr_27 tr_81 tr_82','created_at'=>'1550452703','updated_at'=>'1550452703']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/sys/notify-announce/edit','type'=>'2','key'=>'84','description'=>'新增/编辑','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'82','level'=>'4','sort'=>'1','position'=>'tr_0 tr_27 tr_81 tr_82','created_at'=>'1550452703','updated_at'=>'1550452703']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/sys/notify-announce/index','type'=>'2','key'=>'83','description'=>'首页','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'82','level'=>'4','sort'=>'0','position'=>'tr_0 tr_27 tr_81 tr_82','created_at'=>'1550452703','updated_at'=>'1550452703']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/sys/notify-message/ajax-edit','type'=>'2','key'=>'88','description'=>'新增','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'86','level'=>'4','sort'=>'1','position'=>'tr_0 tr_27 tr_81 tr_86','created_at'=>'1550452704','updated_at'=>'1550452704']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/sys/notify-message/destroy','type'=>'2','key'=>'89','description'=>'删除','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'86','level'=>'4','sort'=>'2','position'=>'tr_0 tr_27 tr_81 tr_86','created_at'=>'1550452704','updated_at'=>'1550452704']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/sys/notify-message/index','type'=>'2','key'=>'87','description'=>'首页','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'86','level'=>'4','sort'=>'0','position'=>'tr_0 tr_27 tr_81 tr_86','created_at'=>'1550452703','updated_at'=>'1550452703']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/sys/system/info','type'=>'2','key'=>'95','description'=>'系统信息','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'94','level'=>'3','sort'=>'0','position'=>'tr_0 tr_27 tr_94','created_at'=>'1550452704','updated_at'=>'1550452704']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/wechat/attachment/delete','type'=>'2','key'=>'162','description'=>'删除','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'156','level'=>'3','sort'=>'5','position'=>'tr_0 tr_116 tr_156','created_at'=>'1550452708','updated_at'=>'1550452708']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/wechat/attachment/get-all-attachment','type'=>'2','key'=>'165','description'=>'同步','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'156','level'=>'3','sort'=>'8','position'=>'tr_0 tr_116 tr_156','created_at'=>'1550452708','updated_at'=>'1550452708']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/wechat/attachment/image-create','type'=>'2','key'=>'159','description'=>'图片新增','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'156','level'=>'3','sort'=>'2','position'=>'tr_0 tr_116 tr_156','created_at'=>'1550452707','updated_at'=>'1550452707']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/wechat/attachment/index','type'=>'2','key'=>'157','description'=>'首页','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'156','level'=>'3','sort'=>'0','position'=>'tr_0 tr_116 tr_156','created_at'=>'1550452707','updated_at'=>'1550452707']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/wechat/attachment/news-edit','type'=>'2','key'=>'158','description'=>'图文新增/编辑','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'156','level'=>'3','sort'=>'1','position'=>'tr_0 tr_116 tr_156','created_at'=>'1550452707','updated_at'=>'1550452707']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/wechat/attachment/preview','type'=>'2','key'=>'163','description'=>'手机预览','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'156','level'=>'3','sort'=>'6','position'=>'tr_0 tr_116 tr_156','created_at'=>'1550452708','updated_at'=>'1550452708']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/wechat/attachment/send','type'=>'2','key'=>'164','description'=>'消息群发','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'156','level'=>'3','sort'=>'7','position'=>'tr_0 tr_116 tr_156','created_at'=>'1550452708','updated_at'=>'1550452708']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/wechat/attachment/video-create','type'=>'2','key'=>'161','description'=>'视频新增','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'156','level'=>'3','sort'=>'4','position'=>'tr_0 tr_116 tr_156','created_at'=>'1550452708','updated_at'=>'1550452708']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/wechat/attachment/voice-create','type'=>'2','key'=>'160','description'=>'音频新增','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'156','level'=>'3','sort'=>'3','position'=>'tr_0 tr_116 tr_156','created_at'=>'1550452708','updated_at'=>'1550452708']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/wechat/fans-tags/delete','type'=>'2','key'=>'155','description'=>'删除','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'153','level'=>'4','sort'=>'1','position'=>'tr_0 tr_116 tr_145 tr_153','created_at'=>'1550452707','updated_at'=>'1550452707']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/wechat/fans-tags/index','type'=>'2','key'=>'154','description'=>'首页','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'153','level'=>'4','sort'=>'0','position'=>'tr_0 tr_116 tr_145 tr_153','created_at'=>'1550452707','updated_at'=>'1550452707']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/wechat/fans/get-all-fans','type'=>'2','key'=>'148','description'=>'获取全部粉丝','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'146','level'=>'4','sort'=>'1','position'=>'tr_0 tr_116 tr_145 tr_146','created_at'=>'1550452707','updated_at'=>'1550452707']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/wechat/fans/index','type'=>'2','key'=>'147','description'=>'首页','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'146','level'=>'4','sort'=>'0','position'=>'tr_0 tr_116 tr_145 tr_146','created_at'=>'1550452707','updated_at'=>'1550452707']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/wechat/fans/move-tag','type'=>'2','key'=>'150','description'=>'标签分组','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'146','level'=>'4','sort'=>'3','position'=>'tr_0 tr_116 tr_145 tr_146','created_at'=>'1550452707','updated_at'=>'1550452707']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/wechat/fans/send-message','type'=>'2','key'=>'151','description'=>'发送消息','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'146','level'=>'4','sort'=>'4','position'=>'tr_0 tr_116 tr_145 tr_146','created_at'=>'1550452707','updated_at'=>'1550452707']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/wechat/fans/sync','type'=>'2','key'=>'149','description'=>'同步','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'146','level'=>'4','sort'=>'2','position'=>'tr_0 tr_116 tr_145 tr_146','created_at'=>'1550452707','updated_at'=>'1550452707']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/wechat/fans/view','type'=>'2','key'=>'152','description'=>'详情','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'146','level'=>'4','sort'=>'5','position'=>'tr_0 tr_116 tr_145 tr_146','created_at'=>'1550452707','updated_at'=>'1550452707']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/wechat/mass-record/delete','type'=>'2','key'=>'171','description'=>'删除','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'169','level'=>'3','sort'=>'1','position'=>'tr_0 tr_116 tr_169','created_at'=>'1550452708','updated_at'=>'1550452708']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/wechat/mass-record/edit','type'=>'2','key'=>'172','description'=>'新建','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'169','level'=>'3','sort'=>'2','position'=>'tr_0 tr_116 tr_169','created_at'=>'1550452708','updated_at'=>'1550452708']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/wechat/mass-record/index','type'=>'2','key'=>'170','description'=>'首页','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'169','level'=>'3','sort'=>'0','position'=>'tr_0 tr_116 tr_169','created_at'=>'1550452708','updated_at'=>'1550452708']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/wechat/menu/ajax-update','type'=>'2','key'=>'129','description'=>'状态修改','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'125','level'=>'4','sort'=>'3','position'=>'tr_0 tr_116 tr_117 tr_125','created_at'=>'1550452706','updated_at'=>'1550452706']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/wechat/menu/delete','type'=>'2','key'=>'128','description'=>'删除','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'125','level'=>'4','sort'=>'2','position'=>'tr_0 tr_116 tr_117 tr_125','created_at'=>'1550452706','updated_at'=>'1550452706']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/wechat/menu/edit','type'=>'2','key'=>'127','description'=>'新增/编辑','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'125','level'=>'4','sort'=>'1','position'=>'tr_0 tr_116 tr_117 tr_125','created_at'=>'1550452706','updated_at'=>'1550452706']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/wechat/menu/index','type'=>'2','key'=>'126','description'=>'首页','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'125','level'=>'4','sort'=>'0','position'=>'tr_0 tr_116 tr_117 tr_125','created_at'=>'1550452706','updated_at'=>'1550452706']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/wechat/menu/save','type'=>'2','key'=>'131','description'=>'生效并置顶','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'125','level'=>'4','sort'=>'5','position'=>'tr_0 tr_116 tr_117 tr_125','created_at'=>'1550452706','updated_at'=>'1550452706']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/wechat/menu/sync','type'=>'2','key'=>'130','description'=>'同步','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'125','level'=>'4','sort'=>'4','position'=>'tr_0 tr_116 tr_117 tr_125','created_at'=>'1550452706','updated_at'=>'1550452706']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/wechat/msg-history/delete','type'=>'2','key'=>'168','description'=>'删除','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'166','level'=>'3','sort'=>'1','position'=>'tr_0 tr_116 tr_166','created_at'=>'1550452708','updated_at'=>'1550452708']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/wechat/msg-history/index','type'=>'2','key'=>'167','description'=>'首页','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'166','level'=>'3','sort'=>'0','position'=>'tr_0 tr_116 tr_166','created_at'=>'1550452708','updated_at'=>'1550452708']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/wechat/qrcode-stat/delete','type'=>'2','key'=>'141','description'=>'删除','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'139','level'=>'5','sort'=>'1','position'=>'tr_0 tr_116 tr_117 tr_132 tr_139','created_at'=>'1550452706','updated_at'=>'1550452706']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/wechat/qrcode-stat/index','type'=>'2','key'=>'140','description'=>'首页','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'139','level'=>'5','sort'=>'0','position'=>'tr_0 tr_116 tr_117 tr_132 tr_139','created_at'=>'1550452706','updated_at'=>'1550452706']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/wechat/qrcode/add','type'=>'2','key'=>'136','description'=>'新增','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'133','level'=>'5','sort'=>'2','position'=>'tr_0 tr_116 tr_117 tr_132 tr_133','created_at'=>'1550452706','updated_at'=>'1550452706']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/wechat/qrcode/delete-all','type'=>'2','key'=>'137','description'=>'删除全部','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'133','level'=>'5','sort'=>'3','position'=>'tr_0 tr_116 tr_117 tr_132 tr_133','created_at'=>'1550452706','updated_at'=>'1550452706']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/wechat/qrcode/down','type'=>'2','key'=>'138','description'=>'下载','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'133','level'=>'5','sort'=>'4','position'=>'tr_0 tr_116 tr_117 tr_132 tr_133','created_at'=>'1550452706','updated_at'=>'1550452706']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/wechat/qrcode/edit','type'=>'2','key'=>'135','description'=>'编辑','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'133','level'=>'5','sort'=>'1','position'=>'tr_0 tr_116 tr_117 tr_132 tr_133','created_at'=>'1550452706','updated_at'=>'1550452706']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/wechat/qrcode/index','type'=>'2','key'=>'134','description'=>'首页','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'133','level'=>'5','sort'=>'0','position'=>'tr_0 tr_116 tr_117 tr_132 tr_133','created_at'=>'1550452706','updated_at'=>'1550452706']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/wechat/qrcode/long-url','type'=>'2','key'=>'143','description'=>'首页','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'142','level'=>'5','sort'=>'0','position'=>'tr_0 tr_116 tr_117 tr_132 tr_142','created_at'=>'1550452707','updated_at'=>'1550452707']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/wechat/qrcode/qr','type'=>'2','key'=>'144','description'=>'转化链接','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'142','level'=>'5','sort'=>'1','position'=>'tr_0 tr_116 tr_117 tr_132 tr_142','created_at'=>'1550452707','updated_at'=>'1550452707']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/wechat/reply-default/index','type'=>'2','key'=>'124','description'=>'关注/默认回复','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'118','level'=>'4','sort'=>'5','position'=>'tr_0 tr_116 tr_117 tr_118','created_at'=>'1550452705','updated_at'=>'1550452705']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/wechat/rule/ajax-update','type'=>'2','key'=>'122','description'=>'关键字状态修改','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'118','level'=>'4','sort'=>'3','position'=>'tr_0 tr_116 tr_117 tr_118','created_at'=>'1550452705','updated_at'=>'1550452705']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/wechat/rule/delete','type'=>'2','key'=>'121','description'=>'关键字删除','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'118','level'=>'4','sort'=>'2','position'=>'tr_0 tr_116 tr_117 tr_118','created_at'=>'1550452705','updated_at'=>'1550452705']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/wechat/rule/edit','type'=>'2','key'=>'120','description'=>'关键字新增/编辑','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'118','level'=>'4','sort'=>'1','position'=>'tr_0 tr_116 tr_117 tr_118','created_at'=>'1550452705','updated_at'=>'1550452705']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/wechat/rule/index','type'=>'2','key'=>'119','description'=>'关键字首页','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'118','level'=>'4','sort'=>'0','position'=>'tr_0 tr_116 tr_117 tr_118','created_at'=>'1550452705','updated_at'=>'1550452705']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/wechat/setting/history-stat','type'=>'2','key'=>'177','description'=>'参数','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'116','level'=>'2','sort'=>'6','position'=>'tr_0 tr_116','created_at'=>'1550452709','updated_at'=>'1550452709']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/wechat/setting/special-message','type'=>'2','key'=>'123','description'=>'非文字自动回复','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'118','level'=>'4','sort'=>'4','position'=>'tr_0 tr_116 tr_117 tr_118','created_at'=>'1550452705','updated_at'=>'1550452705']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/wechat/stat/fans-follow','type'=>'2','key'=>'174','description'=>'粉丝关注统计','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'173','level'=>'3','sort'=>'0','position'=>'tr_0 tr_116 tr_173','created_at'=>'1550452708','updated_at'=>'1550452708']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/wechat/stat/rule','type'=>'2','key'=>'175','description'=>'回复规则使用量','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'173','level'=>'3','sort'=>'1','position'=>'tr_0 tr_116 tr_173','created_at'=>'1550452708','updated_at'=>'1550452708']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/wechat/stat/rule-keyword','type'=>'2','key'=>'176','description'=>'关键字命中规则','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'173','level'=>'3','sort'=>'2','position'=>'tr_0 tr_116 tr_173','created_at'=>'1550452708','updated_at'=>'1550452708']);
        $this->insert('{{%sys_auth_item}}',['name'=>'addons','type'=>'2','key'=>'178','description'=>'应用管理','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'0','level'=>'1','sort'=>'4','position'=>'tr_0','created_at'=>'1550452709','updated_at'=>'1550452709']);
        $this->insert('{{%sys_auth_item}}',['name'=>'base','type'=>'2','key'=>'1','description'=>'系统基础','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'0','level'=>'1','sort'=>'0','position'=>'tr_0','created_at'=>'1550452699','updated_at'=>'1550452699']);
        $this->insert('{{%sys_auth_item}}',['name'=>'base-announce','type'=>'2','key'=>'5','description'=>'查看消息','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'1','level'=>'2','sort'=>'3','position'=>'tr_0 tr_1','created_at'=>'1550452699','updated_at'=>'1550452699']);
        $this->insert('{{%sys_auth_item}}',['name'=>'cate:1','type'=>'2','key'=>'9','description'=>'平台首页','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'0','level'=>'1','sort'=>'1','position'=>'tr_0','created_at'=>'1550452699','updated_at'=>'1550452699']);
        $this->insert('{{%sys_auth_item}}',['name'=>'cate:2','type'=>'2','key'=>'116','description'=>'微信公众号','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'0','level'=>'1','sort'=>'3','position'=>'tr_0','created_at'=>'1550452705','updated_at'=>'1550452705']);
        $this->insert('{{%sys_auth_item}}',['name'=>'cate:3','type'=>'2','key'=>'27','description'=>'系统管理','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'0','level'=>'1','sort'=>'2','position'=>'tr_0','created_at'=>'1550452700','updated_at'=>'1550452700']);
        $this->insert('{{%sys_auth_item}}',['name'=>'index-member','type'=>'2','key'=>'10','description'=>'会员管理','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'9','level'=>'2','sort'=>'0','position'=>'tr_0 tr_9','created_at'=>'1550452699','updated_at'=>'1550452699']);
        $this->insert('{{%sys_auth_item}}',['name'=>'index-member-address','type'=>'2','key'=>'17','description'=>'收货地址','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'11','level'=>'4','sort'=>'5','position'=>'tr_0 tr_9 tr_10 tr_11','created_at'=>'1550452700','updated_at'=>'1550452700']);
        $this->insert('{{%sys_auth_item}}',['name'=>'index-member-auth','type'=>'2','key'=>'22','description'=>'第三方用户','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'10','level'=>'3','sort'=>'1','position'=>'tr_0 tr_9 tr_10','created_at'=>'1550452700','updated_at'=>'1550452700']);
        $this->insert('{{%sys_auth_item}}',['name'=>'index-member-info','type'=>'2','key'=>'11','description'=>'会员信息','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'10','level'=>'3','sort'=>'0','position'=>'tr_0 tr_9 tr_10','created_at'=>'1550452699','updated_at'=>'1550452699']);
        $this->insert('{{%sys_auth_item}}',['name'=>'sys-addons','type'=>'2','key'=>'31','description'=>'应用管理','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'30','level'=>'3','sort'=>'0','position'=>'tr_0 tr_27 tr_30','created_at'=>'1550452700','updated_at'=>'1550452700']);
        $this->insert('{{%sys_auth_item}}',['name'=>'sys-attachment','type'=>'2','key'=>'90','description'=>'资源文件','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'27','level'=>'2','sort'=>'4','position'=>'tr_0 tr_27','created_at'=>'1550452704','updated_at'=>'1550452704']);
        $this->insert('{{%sys_auth_item}}',['name'=>'sys-auth-accredit','type'=>'2','key'=>'66','description'=>'权限管理','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'59','level'=>'3','sort'=>'1','position'=>'tr_0 tr_27 tr_59','created_at'=>'1550452702','updated_at'=>'1550452702']);
        $this->insert('{{%sys_auth_item}}',['name'=>'sys-auth-role','type'=>'2','key'=>'76','description'=>'角色管理','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'59','level'=>'3','sort'=>'3','position'=>'tr_0 tr_27 tr_59','created_at'=>'1550452703','updated_at'=>'1550452703']);
        $this->insert('{{%sys_auth_item}}',['name'=>'sys-auth-rule','type'=>'2','key'=>'71','description'=>'规则管理','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'59','level'=>'3','sort'=>'2','position'=>'tr_0 tr_27 tr_59','created_at'=>'1550452703','updated_at'=>'1550452703']);
        $this->insert('{{%sys_auth_item}}',['name'=>'sys-config','type'=>'2','key'=>'39','description'=>'配置管理','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'30','level'=>'3','sort'=>'1','position'=>'tr_0 tr_27 tr_30','created_at'=>'1550452701','updated_at'=>'1550452701']);
        $this->insert('{{%sys_auth_item}}',['name'=>'sys-config-cate','type'=>'2','key'=>'44','description'=>'配置分类','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'39','level'=>'4','sort'=>'4','position'=>'tr_0 tr_27 tr_30 tr_39','created_at'=>'1550452701','updated_at'=>'1550452701']);
        $this->insert('{{%sys_auth_item}}',['name'=>'sys-data','type'=>'2','key'=>'103','description'=>'备份还原','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'94','level'=>'3','sort'=>'2','position'=>'tr_0 tr_27 tr_94','created_at'=>'1550452704','updated_at'=>'1550452704']);
        $this->insert('{{%sys_auth_item}}',['name'=>'sys-data-backups','type'=>'2','key'=>'104','description'=>'数据备份','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'103','level'=>'4','sort'=>'0','position'=>'tr_0 tr_27 tr_94 tr_103','created_at'=>'1550452704','updated_at'=>'1550452704']);
        $this->insert('{{%sys_auth_item}}',['name'=>'sys-data-restore','type'=>'2','key'=>'111','description'=>'数据还原','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'103','level'=>'4','sort'=>'1','position'=>'tr_0 tr_27 tr_94 tr_103','created_at'=>'1550452705','updated_at'=>'1550452705']);
        $this->insert('{{%sys_auth_item}}',['name'=>'sys-function','type'=>'2','key'=>'30','description'=>'系统功能','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'27','level'=>'2','sort'=>'1','position'=>'tr_0 tr_27','created_at'=>'1550452700','updated_at'=>'1550452700']);
        $this->insert('{{%sys_auth_item}}',['name'=>'sys-manager','type'=>'2','key'=>'60','description'=>'后台用户','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'59','level'=>'3','sort'=>'0','position'=>'tr_0 tr_27 tr_59','created_at'=>'1550452702','updated_at'=>'1550452702']);
        $this->insert('{{%sys_auth_item}}',['name'=>'sys-manager-auth','type'=>'2','key'=>'59','description'=>'用户权限','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'27','level'=>'2','sort'=>'2','position'=>'tr_0 tr_27','created_at'=>'1550452702','updated_at'=>'1550452702']);
        $this->insert('{{%sys_auth_item}}',['name'=>'sys-menu','type'=>'2','key'=>'49','description'=>'后台菜单','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'30','level'=>'3','sort'=>'2','position'=>'tr_0 tr_27 tr_30','created_at'=>'1550452701','updated_at'=>'1550452701']);
        $this->insert('{{%sys_auth_item}}',['name'=>'sys-menu-cate','type'=>'2','key'=>'54','description'=>'菜单分类','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'49','level'=>'4','sort'=>'4','position'=>'tr_0 tr_27 tr_30 tr_49','created_at'=>'1550452702','updated_at'=>'1550452702']);
        $this->insert('{{%sys_auth_item}}',['name'=>'sys-notify','type'=>'2','key'=>'81','description'=>'系统消息','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'27','level'=>'2','sort'=>'3','position'=>'tr_0 tr_27','created_at'=>'1550452703','updated_at'=>'1550452703']);
        $this->insert('{{%sys_auth_item}}',['name'=>'sys-notify-announce','type'=>'2','key'=>'82','description'=>'公告管理','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'81','level'=>'3','sort'=>'0','position'=>'tr_0 tr_27 tr_81','created_at'=>'1550452703','updated_at'=>'1550452703']);
        $this->insert('{{%sys_auth_item}}',['name'=>'sys-notify-message','type'=>'2','key'=>'86','description'=>'私信管理','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'81','level'=>'3','sort'=>'1','position'=>'tr_0 tr_27 tr_81','created_at'=>'1550452703','updated_at'=>'1550452703']);
        $this->insert('{{%sys_auth_item}}',['name'=>'sys-tool','type'=>'2','key'=>'94','description'=>'系统工具','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'27','level'=>'2','sort'=>'5','position'=>'tr_0 tr_27','created_at'=>'1550452704','updated_at'=>'1550452704']);
        $this->insert('{{%sys_auth_item}}',['name'=>'sys-view-log','type'=>'2','key'=>'96','description'=>'查看日志','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'94','level'=>'3','sort'=>'1','position'=>'tr_0 tr_27 tr_94','created_at'=>'1550452704','updated_at'=>'1550452704']);
        $this->insert('{{%sys_auth_item}}',['name'=>'wechat-attachment','type'=>'2','key'=>'156','description'=>'素材库','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'116','level'=>'2','sort'=>'2','position'=>'tr_0 tr_116','created_at'=>'1550452707','updated_at'=>'1550452707']);
        $this->insert('{{%sys_auth_item}}',['name'=>'wechat-auto-reply','type'=>'2','key'=>'118','description'=>'自动回复','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'117','level'=>'3','sort'=>'0','position'=>'tr_0 tr_116 tr_117','created_at'=>'1550452705','updated_at'=>'1550452705']);
        $this->insert('{{%sys_auth_item}}',['name'=>'wechat-data-statistics','type'=>'2','key'=>'173','description'=>'数据统计','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'116','level'=>'2','sort'=>'5','position'=>'tr_0 tr_116','created_at'=>'1550452708','updated_at'=>'1550452708']);
        $this->insert('{{%sys_auth_item}}',['name'=>'wechat-fans','type'=>'2','key'=>'145','description'=>'粉丝管理','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'116','level'=>'2','sort'=>'1','position'=>'tr_0 tr_116','created_at'=>'1550452707','updated_at'=>'1550452707']);
        $this->insert('{{%sys_auth_item}}',['name'=>'wechat-fans-manager','type'=>'2','key'=>'146','description'=>'粉丝管理','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'145','level'=>'3','sort'=>'0','position'=>'tr_0 tr_116 tr_145','created_at'=>'1550452707','updated_at'=>'1550452707']);
        $this->insert('{{%sys_auth_item}}',['name'=>'wechat-fans-tags','type'=>'2','key'=>'153','description'=>'粉丝标签','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'145','level'=>'3','sort'=>'1','position'=>'tr_0 tr_116 tr_145','created_at'=>'1550452707','updated_at'=>'1550452707']);
        $this->insert('{{%sys_auth_item}}',['name'=>'wechat-mass-record','type'=>'2','key'=>'169','description'=>'定时群发','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'116','level'=>'2','sort'=>'4','position'=>'tr_0 tr_116','created_at'=>'1550452708','updated_at'=>'1550452708']);
        $this->insert('{{%sys_auth_item}}',['name'=>'wechat-menu','type'=>'2','key'=>'125','description'=>'自定义菜单','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'117','level'=>'3','sort'=>'1','position'=>'tr_0 tr_116 tr_117','created_at'=>'1550452706','updated_at'=>'1550452706']);
        $this->insert('{{%sys_auth_item}}',['name'=>'wechat-msg-history','type'=>'2','key'=>'166','description'=>'历史消息','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'116','level'=>'2','sort'=>'3','position'=>'tr_0 tr_116','created_at'=>'1550452708','updated_at'=>'1550452708']);
        $this->insert('{{%sys_auth_item}}',['name'=>'wechat-qr-code','type'=>'2','key'=>'132','description'=>'二维码/转化链接','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'117','level'=>'3','sort'=>'2','position'=>'tr_0 tr_116 tr_117','created_at'=>'1550452706','updated_at'=>'1550452706']);
        $this->insert('{{%sys_auth_item}}',['name'=>'wechat-qr-code-long-url','type'=>'2','key'=>'142','description'=>'长链接转二维码','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'132','level'=>'4','sort'=>'2','position'=>'tr_0 tr_116 tr_117 tr_132','created_at'=>'1550452706','updated_at'=>'1550452706']);
        $this->insert('{{%sys_auth_item}}',['name'=>'wechat-qr-code-manager','type'=>'2','key'=>'133','description'=>'二维码管理','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'132','level'=>'4','sort'=>'0','position'=>'tr_0 tr_116 tr_117 tr_132','created_at'=>'1550452706','updated_at'=>'1550452706']);
        $this->insert('{{%sys_auth_item}}',['name'=>'wechat-qr-code-statistical','type'=>'2','key'=>'139','description'=>'扫描统计','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'132','level'=>'4','sort'=>'1','position'=>'tr_0 tr_116 tr_117 tr_132','created_at'=>'1550452706','updated_at'=>'1550452706']);
        $this->insert('{{%sys_auth_item}}',['name'=>'wechat-to-enhance-function','type'=>'2','key'=>'117','description'=>'增强功能','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'116','level'=>'2','sort'=>'0','position'=>'tr_0 tr_116','created_at'=>'1550452705','updated_at'=>'1550452705']);
        
        /* 设置外键约束 */
        $this->execute('SET foreign_key_checks = 1;');
    }

    public function down()
    {
        $this->execute('SET foreign_key_checks = 0');
        /* 删除表 */
        $this->dropTable('{{%sys_auth_item}}');
        $this->execute('SET foreign_key_checks = 1;');
    }
}

